<%@page language="java" import="com.scalar.chiptrack.finance.integration.company.Bank" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<%@ page import="com.scalar.chiptrack.utils.ConfigManager"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html:html>
<HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>
<META content="MSHTML 5.50.4807.2300" name=GENERATOR>
<SCRIPT language="JavaScript1.2">
function submit()
{
    if( document.BankForm.bankId.value == '' )
    {
        alert("Please enter Bank Id");
    }
    else if( document.BankForm.ddTransitNumber.value == '' )
    {
        alert("Please enter DDTransit Number");
    }
    else
    {
        document.BankForm.bankId.disabled=false;
        document.BankForm.submit();
    }
}
</SCRIPT>
</HEAD>
<BODY bgColor=#ffffff leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<!-- Top Header Start-->

<%@include file="/jsp/includes/header.jsp"  %>

<!-- Top Header End-->
<p>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<TD width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

<!-- Side Navigation start -->

<%@include file="/jsp/finance/finance_menu.jsp" %>

</TD>
<!-- end of the side navigations -->

<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">

<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
<BR>
<!-- from here your body starts -->
			<P>
			<TABLE BORDER="0" WIDTH="100%">
				<TR>
					<TD WIDTH="100%" CLASS="NArialW">
						<P ALIGN="CENTER">Bank
					</TD>
				</TR>
				<TR>
					<TD WIDTH="100%">&nbsp;</TD>
				</TR>
                <TR>
                    <TD>&nbsp;</TD>
                </TR>
                <TR>
                    <TD><chiptrack:errors styleClass="NArialL" /></TD>
                </TR>
                <TR>
                    <TD><chiptrack:moreErrorInfo styleClass="NArialL" /></TD>
                </TR>
				<TR>
					<TD WIDTH="100%">
            <html:form name="BankForm" action="/bank.do?action=save" method="post" type="com.scalar.chiptrack.finance.integration.company.forms.BankForm">
						<TABLE BORDER="0" WIDTH="100%" CLASS="NArialL">
							<TR>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="25%">Bank ID:<font color ="red" style="arial"> &nbsp;*</font></TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="22%">
                                    <logic:equal name="action" value="edit">
                                        <html:text name ="BankForm" property="bankId" size="15" styleClass="txfield" disabled="true" />
                                    </logic:equal>

                                    <logic:notEqual name="action" value="edit">
                                        <html:text name ="BankForm" property="bankId" size="15" styleClass="txfield"/>
                                </TD>
                                    </logic:notEqual>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="24%">&nbsp;Name:</TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="24%"><html:text name ="BankForm" property="bankName" size="15" styleClass="txfield"/></TD>
								<TD WIDTH="1%">&nbsp;</TD>
							</TR>
							<TR>
								<TD COLSPAN="9">&nbsp;</TD>
							</TR>
							<TR>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="25%">Address 1:</TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="22%"><html:text name ="BankForm" property="address1" size="15" styleClass="txfield"/></TD>

								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="24%">Phone 1:</TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="24%"><html:text name ="BankForm" property="phone1" size="15" styleClass="txfield"/><TD>
								<TD WIDTH="1%">&nbsp;</TD>
							</TR>
							<TR>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="25%">Address 2:</TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="22%"><html:text name ="BankForm" property="address2" size="15" styleClass="txfield"/></TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="24%">Phone 2:</TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="24%"><html:text name ="BankForm" property="phone2" size="15" styleClass="txfield"/></TD>
								<TD WIDTH="1%">&nbsp;</TD>
							</TR>
							<TR>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="25%">Address 3:</TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="22%"><html:text name ="BankForm" property="address3" size="15" styleClass="txfield"/></TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="24%">Phone 3:</TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="24%"><html:text name ="BankForm" property="phone3" size="15" styleClass="txfield"/></TD>
								<TD WIDTH="1%">&nbsp;</TD>
							</TR>
                            			<TR>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="25%">City:</TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="22%"><html:text name ="BankForm" property="city" size="15" styleClass="txfield"/></TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="24%">State:</TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="24%"><html:text name ="BankForm" property="state" size="15" styleClass="txfield"/></TD>
								<TD WIDTH="1%">&nbsp;</TD>
							</TR>
							<TR>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="25%">Zip Code:</TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="22%"><html:text name ="BankForm" property="zipCode" size="15" styleClass="txfield"/></TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="24%">Fax:</TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="24%"><html:text name ="BankForm" property="fax" size="15" styleClass="txfield"/></TD>
								<TD WIDTH="1%">&nbsp;</TD>
							</TR>
							<TR>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="25%">Country:</TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="22%"><html:text name ="BankForm" property="country" size="15" styleClass="txfield"/></TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="24%">&nbsp;</TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="24%">&nbsp;</TD>
								<TD WIDTH="1%">&nbsp;</TD>
							</TR>
							<TR>
								<TD COLSPAN="9">&nbsp;</TD>
							</TR>
							<TR>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="25%">Transit Number:</TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="22%"><html:text name ="BankForm" property="transitNumber" size="15" styleClass="txfield"/></TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="24%">DD Transit Number:<font color ="red" style="arial"> &nbsp;*</font></TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="24%"><html:text name ="BankForm" property="ddTransitNumber" size="15" styleClass="txfield"/></TD>
								<TD WIDTH="1%">&nbsp;</TD>
							</TR>
							<TR>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="25%">Bank Branch:</TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="22%"><html:text name ="BankForm" property="bankBranch" size="15" styleClass="txfield"/></TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="24%">&nbsp;</TD>
								<TD WIDTH="1%">&nbsp;</TD>
								<TD WIDTH="24%">&nbsp;</TD>
								<TD WIDTH="1%">&nbsp;</TD>
							</TR>

						</TABLE>
                        </html:form>
					</TD>
				</TR>
				<TR>
					<TD WIDTH="100%">
						<TABLE BORDER="0" WIDTH="100%">
							<TR>
								<TD WIDTH="50%">
<P ALIGN="RIGHT"><IMG SRC="<%=chipTracContext%>/jsp/includes/images/save.gif" WIDTH="53" HEIGHT="17" ALIGN="BOTTOM" BORDER="0" onClick="javascript:submit()">
								</TD>
								<TD WIDTH="50%"><IMG SRC="<%=chipTracContext%>/jsp/includes/images/cancel.gif" WIDTH="53" HEIGHT="17" ALIGN="BOTTOM" BORDER="0"></TD>
							</TR>
						</TABLE>
					</TD>
				</TR>
			</TABLE>
<!-- Your Work area ends here -->
		</TD>
		<TD BGCOLOR="white"><IMG SRC="images/spacer.gif" WIDTH="1" HEIGHT="1" ALIGN="BOTTOM" BORDER="0"></TD>
	</TR>
</TBODY></TABLE>
</p>
<!-- Footer starts here -->

<%@include file="/jsp/includes/footer.jsp" %>

<!-- footer end here -->
</BODY>
</html:html>